package com.zmn.oms.persistence.interfaces.shop;

import com.zmn.oms.model.entity.shop.OrderExternalShop;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author wangyanci
 * @since 2022-08-30
 */
public interface OrderExternalShopDao {

    /**
     * 插入数据
     *
     * @param orderExternalShop 插入数据
     * @return 插入数据是否成功
     */
    int insert(OrderExternalShop orderExternalShop);

    /**
     * 修改数据
     *
     * @param orderExternalShop
     * @return 修改是否成功
     */
    int updateById(OrderExternalShop orderExternalShop);

    OrderExternalShop findByOrderIdAndWorkId(@Param("orderId") Long orderId, @Param("workId") Long workId);

    void deleteByOrderIdAndWorkId(@Param("orderId") Long orderId, @Param("workId") Long workId);
}
